﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ServiceModel;

namespace MyLiveMesh.Models
{
    public class Client
    {
        static ServiceReference2.Service1Client instance = null;

        public static ServiceReference2.Service1Client Current { 
            get {
                if (instance == null)
                {
                    //BasicHttpBinding binding = new BasicHttpBinding();
                    //EndpointAddress address = new EndpointAddress("http://localhost:8732/Design_Time_Addresses/BecktonService/Service1/");
                    //instance = new ServiceReference2.Service1Client(binding, address);
                    instance = new ServiceReference2.Service1Client();
                }
                return instance;
                } 
            } 
        }
}
